package com.kgc.scd.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kgc.scd.bean.Seckill;
import com.kgc.scd.bean.SeckillResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: com.kgc.scd.mapper
 * @author: HarryXzy
 * @create: 2022-06-14 12:09
 * @description:
 **/
public interface SeckillMapper extends BaseMapper<Seckill> {


    // 获取所有可以参加的秒杀活动
    List<SeckillResult> selectAllSecKill(@Param("time") String format);


    SeckillResult selectSecKillResultById(@Param("seckillId")String seckillId);
}
